import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import {
  Button,
  Layout,
  Icon,
  Drawer,
  Menu,
  Radio,
  Switch
} from "ant-design-vue";
import "ant-design-vue/dist/antd.less";

import Authorized from "@/components/Authorized";
import Auth from "@/directives/auth";
// import "ant-design-vue/lib/button/style";
Vue.use(Auth);
Vue.config.productionTip = false;
Vue.use(Button);
Vue.use(Layout);
Vue.use(Icon);
Vue.use(Drawer);
Vue.use(Menu);
Vue.use(Radio);
Vue.use(Switch);
Vue.component("Authorized", Authorized);
//console.log("process: ", process);
//if (process.env.VUE_APP_MOCK && process.env.NODE_ENV === "development") {
require("../mock");
//}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
